package com.caopeng.javaee.dao;

import com.caopeng.javaee.entity.course;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

@Repository
public interface CourseJpa extends JpaSpecificationExecutor<course>, Serializable, JpaRepository<course,Integer> {
    List<course> findByCourseTeacherId(String i);
    course findById(int id);
}
